package com.mingqijia.gassafety.authority.api.resp.resource;

import com.fasterxml.jackson.annotation.JsonIgnore;
import com.fasterxml.jackson.annotation.JsonInclude;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.List;

/**
 * @author Damon S.
 * @version v1.0.1
 * @date {YEAR}年{MONTH}月{DAY}日 {TIME}
 */
@Data
@ApiModel(value = "更新资源管理数据")
public final class ResourceLiteRespDTO implements Serializable {
    @ApiModelProperty(value = "资源ID")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String resId;

    @ApiModelProperty(value = "名称")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String name;

    @ApiModelProperty(value = "类型：1-菜单，2-按钮，3-数据")
    private Integer type;

    @ApiModelProperty(value = "页面路径")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String url;

    @ApiModelProperty(value = "功能编码")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String funcCode;

    @ApiModelProperty(value = "排序值")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private Integer ordinal;

    @ApiModelProperty(value = "下级(根为/)")
    @JsonInclude(JsonInclude.Include.NON_NULL)
    private String parentId;

    @ApiModelProperty(value = "下级资源")
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<ResourceLiteRespDTO> children;
}
